export default (safe) => {
    console.log(safe) //vue的this对象
    return {
        editBtn: false,
        delBtn: false,
        index: true,
        align: 'center',
        headerAlign: 'center',
        border: true,
        stripe: true,
        column: [{
                label: "角色名称",
                prop: "role_name",
                // search: true,
                rules: [{
                    required: true,
                    message: "请输入角色名称",
                    trigger: "blur"
                }]
            }, {
                label: "描述",
                prop: "cmark",
                // search: true,
                rules: [{
                    required: true,
                    message: "请输入描述",
                    trigger: "blur"
                }]
            },
            {
                label: "角色权重",
                prop: "weight",
                // search: true,
                rules: [{
                    required: true,
                    message: "请输入角色权重",
                    trigger: "blur"
                }]
            },
            {
                row: true,
                span: 12,
                label: "状态",
                prop: "state",
                // search: true,
                type: 'select',
                slot: true,
                dicData: [{
                        label: '禁用',
                        value: 2
                    },
                    {
                        label: '启用',
                        value: 1
                    }
                ],
                rules: [{
                    required: true,
                    message: '请选择状态',
                    trigger: 'change'
                }],
            },
        ],
    }
}